﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.ViewModel.Customer
{
    public class OrganizationsViewModel : GenerateViewMode, IViewModel
    {
        [Required(ErrorMessage = "Name is required.")]
        [Display(Name = "Organization Name:")]
        [StringLength(3, ErrorMessage = "Organization Name cannot be longer than 3 characters.")]
        public string OrgName { get; set; }

        [Required(ErrorMessage = "Organization Code is required.")]
        [Display(Name = "Organization Code:")]
        [StringLength(50, ErrorMessage = "Organization Code cannot be longer than 50 characters.")]
        public string OrgCode { get; set; }

        [StringLength(100, ErrorMessage = "Description cannot be longer than 100 characters.")]
        public string Description { get; set; }
    }
}
